package com.kamistoat.meimeichatserveraggrement.protocol;

public interface Command {
    /**
     * UDP专用。此时说明消息仅仅是普通的String字符，不需要做编解码
     */
    Byte NormalString = 0;

    Byte LoginRequest = 1;
    Byte LoginResponse = 2;

    Byte MsgRequest = 3;
    Byte MsgResponse = 4;

    Byte TalkNoticeRequest = 5;
    Byte TalkNoticeResponse = 6;

    Byte SearchFriendRequest = 7;
    Byte SearchFriendResponse = 8;

    Byte AddFriendRequest = 9;
    Byte AddFriendResponse = 10;

    Byte DelTalkRequest = 11;

    Byte MsgGroupRequest = 12;
    Byte MsgGroupResponse = 13;

    Byte ReconnectRequest = 14;

    Byte ClientOnLineStatusNotice = 15;
    Byte MsgRoamingRequest = 16;

    /**
     * UDP专用
     */
    Byte UDP_ClientOnlineNotice = 30;

    /**
     * 以下均为P2P连接专用
     */
    Byte UDP_EstablishP2PClient2Server = 31;
    Byte TCP_EstablishP2PServer2Client = 32;
    Byte UDP_AnswerP2PClient2Server = 33;
    Byte UDP_AnswerP2PClient2Client = 34;
    Byte UDP_MessageClient2Client = 35;
}
